// cover some element-ui styles
@import "./variables";
@import "./element-variables";

.el-table {
  color: #666;
}

.el-table thead {
  color: $titleColor;
}

.el-table .el-table__header-wrapper th {
  background-color: rgba(250,250,250,1);
  font-weight: 500;
}

.el-button--small {
  border-radius: $border-radius;
}

// 全局border-radius设置
//.el-textarea .el-textarea__inner, .el-input .el-input__inner {
//  border-radius: $border-radius;
//}

// 时间筛选样式
.el-range-editor--mini.el-input__inner {
  height: 30px;
}
//.el-radio-group .el-radio-button .el-radio-button__inner {
//  padding: 8px 16px;
//}
.el-radio-group .el-radio-button__orig-radio:checked+.el-radio-button__inner {
  color: $--color-primary;
  background-color: transparent;
}

// //form表单相关
// form表单内时间选择
.el-form-item__content .el-date-editor.el-input, .el-form-item__content .el-date-editor.el-input__inner {
  width: 100%;
}

.el-form-item .el-form-item__label {
  font-size: 12px;
  font-weight: 400;
  color: #333;
}

// 下拉选择框
.el-select-dropdown__item {
  padding: 0 15px;
}
.el-select-dropdown__item.hover, .el-select-dropdown__item:hover {
  background:rgba(230,247,255,1);
  &:before {
    content: " ";
    width: 3px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: $--color-primary;
  }
}

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}



// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

// 树形选择line-height统一设置
.tree-select-line-height.el-form-item--medium {
  .el-form-item__content {
    line-height: 34px;
  }
}

.tree-select-line-height.el-form-item--default {
  .el-form-item__content {
    line-height: 38px;
  }
}

.tree-select-line-height.el-form-item--small {
  .vue-treeselect__control {
    height: initial;
  }
  .el-form-item__content {
    line-height: 30px;
  }
  .vue-treeselect__placeholder, .vue-treeselect__single-value {
    line-height: 30px;
  }
}

.tree-select-line-height.el-form-item--mini {
  .vue-treeselect__control {
    height: initial;
  }
  .el-form-item__content {
    line-height: 26px;
  }
  .vue-treeselect__placeholder, .vue-treeselect__single-value {
    line-height: 26px;
  }
}

// Table内按钮颜色不随着主题色改变修改
/*.el-table .fixed-width .el-button--mini {
  color: initial!important;
}*/


.el-form-item .el-select {
  width: 100%;
}

// 禁用样式
.el-input.is-disabled .el-input__inner {
  background-color: #f5f5f5;
}

// tooltip宽度限制
.el-tooltip__popper {
  max-width: 50%;
}

// 解决message弹框层级在dialog之下
.el-message {
  z-index: 3000!important;;
}
